package abstract

import "fmt"

type ISportsFactory interface {
	MakeShoe() IShoe
	MakeShirt() IShirt
}

func GetSportsFactory(brand Brand) (ISportsFactory, error) {
	if brand == AdidasBrand {
		return &Adidas{}, nil
	}
	if brand == NikeBrand {
		return &Nike{}, nil
	}
	return nil, fmt.Errorf("Wrong Brand type passed")
}
